/* 自定义Bootstrap Select下拉框高度设置 */

/* 调整Bootstrap Select下拉菜单的最大高度 */
.bootstrap-select .dropdown-menu {
    max-height: 2000px !important;
}

/* 调整Bootstrap Select内部容器的最大高度 */
.bootstrap-select .dropdown-menu .inner {
    max-height: 2000px !important;
    overflow-y: auto;
}

/* 特别针对地点和班级下拉框的设置 */
#c-class_id.bootstrap-select .dropdown-menu,
#c-admin_id.bootstrap-select .dropdown-menu {
    max-height: 2000px !important;
}

#c-class_id.bootstrap-select .dropdown-menu .inner,
#c-admin_id.bootstrap-select .dropdown-menu .inner {
    max-height: 2000px !important;
    overflow-y: auto;
}

/* 确保下拉框内容能够正常显示 */
.bootstrap-select .dropdown-menu li {
    white-space: nowrap;
}

/* 调整搜索框的样式 */
.bootstrap-select .bs-searchbox {
    padding: 4px 8px;
}

/* 确保下拉框在小屏幕上也能正常显示 */
@media (max-width: 768px) {
    .bootstrap-select .dropdown-menu {
        max-height: 1500px !important;
    }
    
    .bootstrap-select .dropdown-menu .inner {
        max-height: 1500px !important;
    }
}

/* 针对具有data-live-search属性的下拉框 */
.bootstrap-select[data-live-search="true"] .dropdown-menu {
    max-height: 2000px !important;
}

.bootstrap-select[data-live-search="true"] .dropdown-menu .inner {
    max-height: 2000px !important;
    overflow-y: auto;
}